/*
 * @Author: TC
 * @Date: 2025-06-19 20:14:22
 * @Last Modified by: TC
 * @Last Modified time: 2025-06-20 17:55:33
 */

import { app } from "../../FrameWork/App";
import { nsConfigConst } from "./ConfigConst";

export namespace nsSkillConfig {
    /**
     * 获取技能配置
     * @param id
     * @returns
     */
    export function getSkillCfg(id: number): CfgInterface.ISkill {
        let cfg: CfgInterface.ISkill = app.cfgMgr.getCfgByKey(nsConfigConst.SkillCfg, "id", id);
        return cfg;
    }

    /**
     * 获取子弹配置
     * @param id
     * @returns
     */
    export function getBulletCfg(id: number): CfgInterface.IBullet {
        let cfg: CfgInterface.IBullet = app.cfgMgr.getCfgByKey(nsConfigConst.BulletCfg, "id", id);
        return cfg;
    }
}
